package com.fd.service;

import com.fd.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserService {
    /*public User getUser();
    public int deleteUser();
    public int insertUser();
    public Integer updateUser();*/

    //查询所有数据
    List<User> getUserAll();
    //查看一本书
    User getUser(Integer id);
    //修改一书(可选)
    int updateUser(User user);
    //删除一本书
    int deleteUser(@Param("id") int id);
    //增加一本书
    int insertUser(User user);
}